<ion-view view-title="发起的秒杀">
    <ion-nav-buttons side="right">
        <button class="button button-clear font-large-my" on-tap="onshow_groupseckill()">发布活动</button>
    </ion-nav-buttons>
    <div class="bar bar-subheader padding-bottom-0">
        <div class="row padding-0 font-large-my text-center">
            <div class="col" ng-class="selectIndex==0?'top-activated':''" on-tap="activeSlide(0)">
              	  进行中
            </div>
            <div class="col" ng-class="selectIndex==1?'top-activated':''" on-tap="activeSlide(1)">
              	  待审批
            </div>
            <div class="col" ng-class="selectIndex==2?'top-activated':''" on-tap="activeSlide(2)">
                    	已结束
            </div>
        </div>
    </div>

    <ion-content class="has-subheader">
        <ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
        <ion-slide-box delegate-handle="main-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
            <!--进行中-->
            <ion-slide>
                <div class="font-large-my font-gray-my text-center padding" ng-if="data.act.length==0||data.act==null">
                    <i class="icon ion-sad-outline font-1rem-my"></i> 对不起，没有符合条件的数据.....
                </div>
                <div class="list list-borderless" ng-repeat="num in data.act">
                    <div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:5px; padding-top:5px;">
                        <img src="{{num.image.image}}">
                        <!--<p >这里是商品的一个小名称</p>-->
                        <p><span class="assertive">{{num.name}}</span><span class="balanced right-zhang">进行中...</span></p>
                        <p><i class="icon ion-clock"></i>{{num.start_time}}</p>
                        <p><i class="icon ion-clock"></i>{{num.end_time}}</p>
                        <p>
                            <i class="icon ion-android-contacts assertive"></i>群互动
                        </p>
                    </div>
                </div>
            </ion-slide>

            <!--待审批-->
            <ion-slide>
                <div class="font-large-my font-gray-my text-center padding" ng-if="data.act.length==0||data.act==null">
                    <i class="icon ion-sad-outline font-1rem-my"></i> 对不起，没有符合条件的数据.....
                </div>
                <div class="list list-borderless" ng-repeat="num in data.act">
                    <div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:5px; padding-top:5px;">
                        <img src="{{num.image.image}}">
                        <!--<p >这里是商品的一个小名称</p>-->
                        <p><span class="assertive">{{num.name}}</span><span class="energized right-zhang">待审批</span></p>
                        <p><i class="icon ion-clock"></i>{{num.start_time}}</p>
                        <p><i class="icon ion-clock"></i>{{num.end_time}}</p>
                        <p>
                            <span on-tap="onshow_groupseckill(num.act_id)"><i class="icon ion-compose positive"></i>编辑</span>
                        </p>
                    </div>
                </div>
            </ion-slide>

            <!--已结束-->
            <ion-slide>
                <div class="font-large-my font-gray-my text-center padding" ng-if="data.act.length==0||data.act==null">
                    <i class="icon ion-sad-outline font-1rem-my"></i> 对不起，没有符合条件的数据.....
                </div>
                <div class="list list-borderless" ng-repeat="num in data.act">
                    <div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:5px; padding-top:5px;">
                        <img src="{{num.image.image}}">
                        <!--<p >这里是商品的一个小名称</p>-->
                        <p><span class="assertive">{{num.name}}</span><span class="right-zhang">已结束</span></p>
                        <p><i class="icon ion-clock"></i>{{num.start_time}}</p>
                        <p><i class="icon ion-clock"></i>{{num.end_time}}</p>
                        <p>
                            <span on-tap="onshow_connectagency(num.act_id)"><i class="icon ion-bag assertive"></i>抽奖</span>
                            <span on-tap="onshow_luckydrawresult(num.act_id)"><i class="icon ion-ios-list-outline assertive margin-left-10-my"></i>抽奖结果</span>
                            <span on-tap="onshow_statistics_second(num.act_id)"><i class="icon ion-android-options assertive margin-left-10-my"></i>统计</span>
                        </p>
                    </div>
                </div>
            </ion-slide>

        </ion-slide-box>
        <ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
    </ion-content>
</ion-view>